.class Lcom/glympse/android/glympse/ViewFavorites$OnClickedDelete;
.super Ljava/lang/Object;
.source "ViewFavorites.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/android/glympse/ViewFavorites;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "OnClickedDelete"
.end annotation


# instance fields
.field private m_oTicket:Lcom/glympse/platform/common/Ticket;

.field final synthetic this$0:Lcom/glympse/android/glympse/ViewFavorites;


# direct methods
.method private constructor <init>(Lcom/glympse/android/glympse/ViewFavorites;Lcom/glympse/platform/common/Ticket;)V
    .locals 1
    .parameter
    .parameter "oTicket"

    .prologue
    .line 457
    iput-object p1, p0, Lcom/glympse/android/glympse/ViewFavorites$OnClickedDelete;->this$0:Lcom/glympse/android/glympse/ViewFavorites;

    .line 454
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 451
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/glympse/android/glympse/ViewFavorites$OnClickedDelete;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    .line 456
    iput-object p2, p0, Lcom/glympse/android/glympse/ViewFavorites$OnClickedDelete;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    return-void
.end method

.method synthetic constructor <init>(Lcom/glympse/android/glympse/ViewFavorites;Lcom/glympse/platform/common/Ticket;Lcom/glympse/android/glympse/ViewFavorites$OnClickedDelete;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 454
    invoke-direct {p0, p1, p2}, Lcom/glympse/android/glympse/ViewFavorites$OnClickedDelete;-><init>(Lcom/glympse/android/glympse/ViewFavorites;Lcom/glympse/platform/common/Ticket;)V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 2
    .parameter "oView"

    .prologue
    .line 464
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v0

    iget-object v0, v0, Lcom/glympse/platform/Platform;->m_oFavoriteList:Lcom/glympse/platform/common/FavoriteList;

    iget-object v1, p0, Lcom/glympse/android/glympse/ViewFavorites$OnClickedDelete;->m_oTicket:Lcom/glympse/platform/common/Ticket;

    invoke-virtual {v0, v1}, Lcom/glympse/platform/common/FavoriteList;->Remove(Lcom/glympse/platform/common/Ticket;)Z

    .line 467
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewFavorites$OnClickedDelete;->this$0:Lcom/glympse/android/glympse/ViewFavorites;

    invoke-static {v0}, Lcom/glympse/android/glympse/ViewFavorites;->access$8(Lcom/glympse/android/glympse/ViewFavorites;)Lcom/glympse/android/glympse/ViewFavorites$TicketAdapter;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 469
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewFavorites$OnClickedDelete;->this$0:Lcom/glympse/android/glympse/ViewFavorites;

    invoke-static {v0}, Lcom/glympse/android/glympse/ViewFavorites;->access$8(Lcom/glympse/android/glympse/ViewFavorites;)Lcom/glympse/android/glympse/ViewFavorites$TicketAdapter;

    move-result-object v0

    invoke-virtual {v0}, Lcom/glympse/android/glympse/ViewFavorites$TicketAdapter;->notifyDataSetChanged()V

    .line 471
    :cond_0
    return-void
.end method
